<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Public.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Subscribe to list 
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
	<h2>
		Subscribe to <%= ViewData[ "listname" ] %></h2>
	<%= Html.ValidationSummary("Creation was unsuccessful. Please correct the errors and try again.") %>
	<% using (Html.BeginForm())
	{ %>
	<div>
		<fieldset>
			<legend>Recipient information</legend>
			<p>
				<label for="email">
					E-mail:</label>
				<%= Html.TextBox("email") %>
				<%= Html.ValidationMessage("email") %>
			</p>
			<p>
				<label for="email">
					Name:</label>
				<%= Html.TextBox("name") %>
				<%= Html.ValidationMessage("name")%>
			</p>
			<p>
				<input type="submit" value="Subscribe to list" />
				<%= Html.ActionLink("Unsubscribe", "unsubscribe") %>
			</p>
		</fieldset>
	</div>
	<% } %> 
</asp:Content>

